package cn.ulyer.generator.vo;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

@Data
public class ColumnVo {


    private String tableName;

    private String name;

    private String isNullable;

    private String jdbcType;

    private String comment;

    private String columnKey;

    private String javaType;
    /**
     * 源定义 varchar(256)
     */
    private String columnDefinition;

    public boolean isPrimaryKey(){
        return StrUtil.equals(columnKey,"PRI");
    }

}
